{% extends "SLBackBundle::layout.html.twig" %}

	{% block title %}{{ parent() }} - Projet - Edition d'image {% endblock %}
	
	{% block body %}
		<div class="intro">
			<p>
			Edition de l'image <i>"{{ image.getWebPath }}"</i> du projet <b>"{{ image.projet.name }}"</b>.<br /><br /><br />
			Aperçus : <img url="{{ asset('images/') }}{{ image.getWebPath }}" alt="aperçus" ><br />
			</p>
		</div>

		<div class="form">
			<form name="myform" action="{{ path('sl_back_projet_image_edit', {'id' : image.projet.id}) }}" method="post" {{ form_enctype(form) }}>
				{{ form_errors(form) }}
			
				<div class="page-form">
						<table><td>
							<tr>{{ form_label(form.alt, "Texte alternatif") }}</tr>
							<tr>{{ form_widget(form.alt) }}</tr>
						</td>
						<td>
							<tr>{{ form_label(form.isThumbnail, "Vignette") }}</tr>
							<tr>{{ form_widget(form.isThumbnail) }}</tr>
						</td>
						</table>
				</div>

				{{ form_rest(form) }}
				<input type="submit" value="Enregistrer"/>
			</form>
		</div>
	{% endblock %}